package com.meyoung.day1;

import org.testng.annotations.*;

public class TestNGDemo1 {
    @BeforeTest
    public void beforeTest01(){
        System.out.println("这是@BeforeTest注释");
    }
    @BeforeMethod
    public void beforeMethod02(){
        System.out.println("这是@BeforeMethod的注解");
    }
    @Test
    public void testCase1(){
        System.out.println("这是@Test注释，case1");
    }
    @Test
    public void testCase2(){
        System.out.println("这是@Test注释，case2");
    }
    @AfterTest
    public void afterTest01(){
        System.out.println("这是@AfterTest的注释");
    }
    @AfterMethod
    public void afterMethod01() {
        System.out.println("这是@AfterMethod的注释");
    }
}
